package org.jeecg.modules.dlxj.service.impl;

import net.bytebuddy.asm.Advice;
import org.jeecg.modules.dlxj.entity.DlxjBugLevelCheck;
import org.jeecg.modules.dlxj.mapper.DlxjBugLevelCheckMapper;
import org.jeecg.modules.dlxj.service.IDlxjBugLevelCheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 缺陷等级确认
 * @Author: lzl
 * @Date:   2022-07-28
 * @Version: V1.0
 */
@Service
public class DlxjBugLevelCheckServiceImpl extends ServiceImpl<DlxjBugLevelCheckMapper, DlxjBugLevelCheck> implements IDlxjBugLevelCheckService {

    @Autowired
    private DlxjBugLevelCheckMapper dlxjBugLevelCheckMapper;


    /**
     * 缺陷等级确认列表
     * @return
     */
    @Override
    public List<DlxjBugLevelCheck> bugLevelCheckList() {
        return dlxjBugLevelCheckMapper.bugLevelCheckList();
    }

    /**
     * 缺陷等级确认，多条件查询
     * @param taskId
     * @param circuitryId
     * @param poleId
     * @param bugType
     * @param findUser
     * @return
     */
    @Override
    public List<DlxjBugLevelCheck> queryByManyConditions(String taskId, String circuitryId, String poleId, String bugType, String findUser) {
        return dlxjBugLevelCheckMapper.queryByManyConditions(taskId,circuitryId,poleId,bugType,findUser);
    }

    @Override
    public void bugLevelCheck(String poleId, Integer level) {
        dlxjBugLevelCheckMapper.bugLevelCheck(poleId,level);

    }

    @Override
    public void updateByPoleId(Integer level, String poleId) {
        dlxjBugLevelCheckMapper.updateByPoleId(level,poleId);

    }

    @Override
    public List<DlxjBugLevelCheck> notShowData() {
        return dlxjBugLevelCheckMapper.notShowData();
    }

}
